home *** CD-ROM | disk | FTP | other *** search
- Path: shrsys.hslc.org!brian
- From: brian@shrsys.hslc.org
- Newsgroups: comp.lang.c++
- Subject: gets() in C++
- Date: 6 MAR 96 13:55:43 GMT
- Organization: MIT PLASMA FUSION CENTER
- Message-ID: <6MAR96.13554357@shrsys.hslc.org>
- NNTP-Posting-Host: shrsys.hslc.org
-
- In C, gets(string) will read a string from stdin to the newline,
- while scanf("%s", string) stops at the first whitespace character.
-
- In C++, cin >> string stops at the first whitespace character.
- Is there a C++ equivalent to gets()?
-
- Stuart Brian (brian@shrsys.hslc.org)
-